package com.zheng.demo.dao.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_sku")
public class ShopSku extends Model<ShopSku> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	private String name;
    /**
     * 创建时间
     */
	private Date ctime;
    /**
     * 最后修改时间
     */
	private Date mtime;
    /**
     * 销售价
     */
	private BigDecimal price;
    /**
     * 市场价
     */
	@TableField("market_price")
	private BigDecimal marketPrice;
    /**
     * 成本价
     */
	@TableField("cost_price")
	private BigDecimal costPrice;
    /**
     * sku状态 0 正常 1冻结 2删除
     */
	private Integer status;
    /**
     * 是否置顶 0 否 1 是
     */
	private Integer top;
    /**
     * 是否最新 0 否 1 是
     */
	private Integer newest;
    /**
     * 是否上架 0 否 1 是
     */
	private Boolean marketable;
    /**
     * 评论数
     */
	private Integer comments;
    /**
     * 库存
     */
	private Integer inventory;
    /**
     * 冻结库存
     */
	@TableField("freeze_inventory")
	private Integer freezeInventory;
    /**
     * 商品销量
     */
	private Integer sales;
    /**
     * 品牌id
     */
	@TableField("brand_id")
	private Integer brandId;
    /**
     * 商品id
     */
	@TableField("product_id")
	private Integer productId;
    /**
     * 商品分类id
     */
	@TableField("product_category_id")
	private Integer productCategoryId;
    /**
     * 静态化 地址
     */
	@TableField("html_path")
	private String htmlPath;
    /**
     * 属性id集合
     */
	@TableField("sku_attribute_ids")
	private String skuAttributeIds;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public BigDecimal getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(BigDecimal marketPrice) {
		this.marketPrice = marketPrice;
	}

	public BigDecimal getCostPrice() {
		return costPrice;
	}

	public void setCostPrice(BigDecimal costPrice) {
		this.costPrice = costPrice;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getTop() {
		return top;
	}

	public void setTop(Integer top) {
		this.top = top;
	}

	public Integer getNewest() {
		return newest;
	}

	public void setNewest(Integer newest) {
		this.newest = newest;
	}

	public Boolean getMarketable() {
		return marketable;
	}

	public void setMarketable(Boolean marketable) {
		this.marketable = marketable;
	}

	public Integer getComments() {
		return comments;
	}

	public void setComments(Integer comments) {
		this.comments = comments;
	}

	public Integer getInventory() {
		return inventory;
	}

	public void setInventory(Integer inventory) {
		this.inventory = inventory;
	}

	public Integer getFreezeInventory() {
		return freezeInventory;
	}

	public void setFreezeInventory(Integer freezeInventory) {
		this.freezeInventory = freezeInventory;
	}

	public Integer getSales() {
		return sales;
	}

	public void setSales(Integer sales) {
		this.sales = sales;
	}

	public Integer getBrandId() {
		return brandId;
	}

	public void setBrandId(Integer brandId) {
		this.brandId = brandId;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public Integer getProductCategoryId() {
		return productCategoryId;
	}

	public void setProductCategoryId(Integer productCategoryId) {
		this.productCategoryId = productCategoryId;
	}

	public String getHtmlPath() {
		return htmlPath;
	}

	public void setHtmlPath(String htmlPath) {
		this.htmlPath = htmlPath;
	}

	public String getSkuAttributeIds() {
		return skuAttributeIds;
	}

	public void setSkuAttributeIds(String skuAttributeIds) {
		this.skuAttributeIds = skuAttributeIds;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopSku{" +
			"id=" + id +
			", name=" + name +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", price=" + price +
			", marketPrice=" + marketPrice +
			", costPrice=" + costPrice +
			", status=" + status +
			", top=" + top +
			", newest=" + newest +
			", marketable=" + marketable +
			", comments=" + comments +
			", inventory=" + inventory +
			", freezeInventory=" + freezeInventory +
			", sales=" + sales +
			", brandId=" + brandId +
			", productId=" + productId +
			", productCategoryId=" + productCategoryId +
			", htmlPath=" + htmlPath +
			", skuAttributeIds=" + skuAttributeIds +
			"}";
	}
}
